
package net.vinote.smart.platform.module.database;

/**
 * 数据库字段
 */
public class Field
{
	private String tableName;// 表名

	private String fieldName;// 字段名

	private String colRemark;// 字段注释

	private String dataType;// 字段类型

	private boolean key; // 主键

	public Field(String tableName, String fieldName, String dataType,
			boolean key, String remark)
	{
		this.tableName = tableName;
		this.fieldName = fieldName;
		this.dataType = dataType;
		this.key = key;
		this.colRemark = remark;
	}

	public String getTableName()
	{
		return tableName;
	}

	public void setTableName(String tableName)
	{
		this.tableName = tableName;
	}

	public String getFieldName()
	{
		return fieldName;
	}

	public void setFieldName(String fieldName)
	{
		this.fieldName = fieldName;
	}

	public String getDataType()
	{
		return dataType;
	}

	public void setDataType(String dataType)
	{
		this.dataType = dataType;
	}

	public boolean isKey()
	{
		return key;
	}

	public void setKey(boolean key)
	{
		this.key = key;
	}

	/**
	 * @return the colRemark
	 */
	public String getColRemark()
	{
		return colRemark;
	}

	/**
	 * @param colRemark
	 *            the colRemark to set
	 */
	public void setColRemark(String colRemark)
	{
		this.colRemark = colRemark;
	}
}
